<header class="Hui-navbar">
    <div class="navbar">
        <div class="container-fluid clearfix">
            <nav id="Hui-topNav" class="nav navbar-nav">
                <ul class="clearfix">
{{/*                    <li><a data-href="article-add.html" data-title="新增资讯" onclick="Hui_admin_tab(this)" href="javascript:;">新增资讯</a></li>*/}}
                   {{/* <li class="dropDown dropDown_hover">
                        <a class="dropDown_A" href="javascript:;">顶部菜单</a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li class="">
                                <a href="#">二级导航</a>
                            </li>
                            <li class="">
                                <a href="#">二级导航</a>
                            </li>
                        </ul>
                    </li>*/}}
                </ul>
            </nav>
            <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar">
                <ul class="clearfix">
                    <li>超级管理员</li>
                    <li class="dropDown dropDown_hover"> <a href="#" class="dropDown_A">{{.adminInfo.Nickname}} <i class="Hui-iconfont">&#xe6d5;</i></a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li>
                                <a title="个人信息" href="javascript:;" onclick="admin_edit('管理员编辑','/{{config "String" "adminPath" ""}}/admin/edit?id={{.adminInfo.Id}}','1')" class="ml-5" style="text-decoration:none">个人信息</a>
                            </li>
{{/*                            <li><a href="#">切换账户</a></li>*/}}
                            <li>
                                <a href="javascript:;" onclick="logOut({{.adminInfo.Id}})">退出</a>
                            </li>
                        </ul>
                    </li>
{{/*                    <li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li>*/}}
                    <li id="Hui-skin" class="dropDown dropDown_hover right">
                        <a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont" style="font-size:18px">&#xe62a;</i></a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li><a href="javascript:;" data-val="default" title="默认（蓝色）">默认（深蓝）</a></li>
                            <li><a href="javascript:;" data-val="black" title="黑色">黑色</a></li>
                            <li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
                            <li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
                            <li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
                            <li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
                        </ul>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</header>
<script>
    function logOut(id){
        var url = "/{{config "String" "adminPath" ""}}/loginOut?admin_id="+{{.adminInfo.Id}}
        $.get(url,function (data) {
            // alert(data)
            // console.log(data.code)
            if (data.code === 200){
                layer.msg(data.msg,{icon:1,time:1000});
                window.location.href="/{{config "String" "adminPath" ""}}/login"
            }else{
                layer.msg("退出失败",{icon:2,time:1000});
            }
        })
        // layer.msg(data.msg,{icon:2,time:1000});
        // alert(url)
    }
</script>
